
<!DOCTYPE html>
<html>
<head>
	<title>Dandenong Community Advisory Bureau</title>
    
	<?php

		echo $this->Html->css('cake.generic');
		echo $this->fetch('meta');
		echo $this->fetch('css');
                ?>
</head>
<body>
	<div id="container">
		<div id="header">
                    <?php echo $this->Html->image('head.jpg', array('alt'=>'Dandenong Community Advisory Bureau', 'border'=>'0'));?>
		</div>
            <div id="nav">
            <?php
            if($this->Session->read('Auth.User.role_id')==1){
            ?>
            
                <ul>
                    <li><?php echo $this->Html->link('Staff', array('controller'=>'users', 'action'=>'index'));?> </li>
                    <li><?php echo $this->Html->link('Subscribers', array('controller'=>'subscribers', 'action'=>'index'));?> </li>
                    <li><?php echo $this->Html->link('Reports', array('controller'=>'reports', 'action'=>'index'));?> </li>
                    <li><?php echo $this->Html->link('Roster', array('controller'=>'roster', 'action'=>'index'));?> </li>
                    <li><?php echo $this->Html->link('Resources', array('controller'=>'resources', 'action'=>'index'));?> </li>
                    <li><?php echo $this->Html->link('Staff Book', array('controller'=>'information', 'action'=>'index'));?> </li>
                    <li><?php echo $this->Html->link('Survey', array('controller'=>'surveys', 'action'=>'index'));?> </li>
                    <li><?php echo $this->Html->link('Back up Database', array('controller'=>'backupDatabase', 'action'=>'index'));?> </li>
                </ul>
            
            <?php
            } else if($this->Session->read('Auth.User.role_id')==2 || $this->Session->read('Auth.User.role_id')==3 || $this->Session->read('Auth.User.role_id')==4){
                ?>
                <ul>
                    <li><?php echo $this->Html->link('Roster', array('controller'=>'roster', 'action'=>'index'));?> </li>
                    <li><?php echo $this->Html->link('Resources', array('controller'=>'resources', 'action'=>'index'));?> </li>
                    <li><?php echo $this->Html->link('Staff Book', array('controller'=>'information', 'action'=>'index'));?> </li>
                    <li><?php echo $this->Html->link('Survey', array('controller'=>'surveys', 'action'=>'index'));?> </li>
                 
                </ul>   
            <?php
            } else {            
            ?>
               
                    <ul>
                        <li><?php echo $this->Html->link('Home', '/pages/home'); ?> </li>
                        <li><?php echo $this->Html->link('About Us', array('controller'=>'aboutUs', 'action'=>'index'));?> </li>
                        <li><?php echo $this->Html->link('What We Do', array('controller'=>'whatWeDo', 'action'=>'index'));?> </li>
                        <li><?php echo $this->Html->link('How To Get Involved', array('controller'=>'getInvolved', 'action'=>'index'));?> </li>
                        <li><?php echo $this->Html->link('Resources', array('controller'=>'resources', 'action'=>'index'));?> </li>
                        <li><?php echo $this->Html->link('Contact Us', array('controller'=>'contactUs', 'action'=>'index'));?> </li>
                    </ul>
                
            <?php
            }
            ?>
            </div>
            

<?php
        if(!$this->Session->read('Auth.User')){?>   
            <div id="page">
		<div id="content">
			<?php echo $this->Session->flash(); ?>
			<?php echo $this->fetch('content'); ?>
		</div>
		
                 <div id="extra">
                 <table border="0">
                    <tr>
                        <th><h4>Find Us</h4></th>
                    </tr>
                    <tr>
                        <th><h4>News</h4></th>
                    </tr>
                 </table>
                  </div>
                 </div>
            <?php }else{ ?>
                
		<div id="admincontent">
			<?php echo $this->Session->flash(); ?>
			<?php echo $this->fetch('content'); ?>
		</div>
                
           <?php }?>

        

           <div id="footer">
           		<ul>
                     <li><?php 
                     if($this->Session->read('Auth.User')){
                        echo $this->Html->link('Logout',array('controller'=>'users','action'=>'logout'));
                     }else{
                        echo $this->Html->link('Login', array('controller'=>'users', 'action'=>'login'));
                     }
                     ?> </li>
                     <li><?php echo $this->Html->link('Privacy Statement', array('controller'=>'privacyStatement', 'action'=>'index'));?> </li>
                     <li><?php echo $this->Html->link('Disclaimer', array('controller'=>'disclaimer', 'action'=>'index'));?> </li>
           		</ul>

			<?php echo $this->Html->image('bottomline.jpg', array('alt'=>'Bottom Line', 'border'=>'0'));?>
		</div>                    
</div>


	<?php echo $this->element('sql_dump'); ?>
</body>
</html>
